package cn.edu.zut.cs.Business;

import cn.edu.zut.cs.Dao.SourcesMapper;
import cn.edu.zut.cs.Model.Sources;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class SourcesServiceImpl implements SourcesService {
    @Autowired
    SourcesMapper sourcesMapper;

    public void setSourcesMapper(SourcesMapper sourcesMapper) {
        this.sourcesMapper = sourcesMapper;
    }


    @Override
    public int insertupload(String username, String urlpath, String filetype, String uploadtime) {
        return sourcesMapper.insertupload(username,urlpath,filetype,uploadtime);
    }

    @Override
    public List<Sources> querySourceBymyselfe(String username) {
        return sourcesMapper.querySourceBymyselfe(username);
    }
}
